﻿#region using
using System;
using Linq2Crm.ObjectModel.Attributes;
using SLApp_Test.Model;
using SilverCrmSoap.CrmSdk;

#endregion

namespace SLApp_Test
{
   [CrmEntityMapping("promx_employee", "promx_employeename", "promx_employeeid")]
   public class Employee : BaseEntity
   {
      [CrmFieldMapping("promx_emailaddress")]
      public virtual string EMailAddress { get; set; }

      // promx_emailaddress
      /// <summary>
      /// </summary>
      /// <value> </value>
      [CrmFieldMapping("promx_firstname")]
      public virtual string FirstName { get; set; }

      // promx_firstname
      /// <summary>
      /// </summary>
      /// <value> </value>
      [CrmFieldMapping("promx_lastname")]
      public virtual string LastName { get; set; }

      // promx_lastname

      [CrmFieldMapping("promx_systemuserid")]
      public virtual Guid? SystemUserId { get; set; }

      // promx_systemuserid

      [CrmFieldMapping("promx_employeetypeid")]
      public virtual EntityReference TypeId { get; set; }
   }
}